package org.jeecg.modules.demo.zc.idleCar.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("CAR_INFO")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="IdleCar对象", description="IdleCar")
public class IdleCar implements Serializable {
    private static final long serialVersionUID = 1L;

    /**车辆id*/
    @Excel(name = "车辆id", width = 15)
    @ApiModelProperty(value = "车辆id")
    @TableId(value = "CAR_ID", type = IdType.AUTO)
//    @Dict(dicCode = "reg_regType")
    private Integer carId;
    /**车牌号*/
    @Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    private String plateNumber;
    /**组织机构id*/
    @Excel(name = "组织机构id", width = 15)
    @ApiModelProperty(value = "组织机构id")
    private Integer orgId;
    /**组织机构编码*/
    @Excel(name = "组织机构编码", width = 15)
    @ApiModelProperty(value = "组织机构编码")
    private String orgCode;
    /**组织机构名称*/
    @Excel(name = "组织机构名称", width = 15)
    @ApiModelProperty(value = "组织机构名称")
    private String orgName;
    /**品牌车型id*/
    @Excel(name = "品牌车型id", width = 15)
    @ApiModelProperty(value = "品牌车型id")
    private Integer brandModelId;
    /**品牌*/
    @Excel(name = "品牌", width = 15)
    @ApiModelProperty(value = "品牌")
    private String brand;
    /**车型*/
    @Excel(name = "车型", width = 15)
    @ApiModelProperty(value = "车型")
    private String model;
    /**车辆类型*/
    @Excel(name = "车辆类型", width = 15)
    @ApiModelProperty(value = "车辆类型")
    private String carType;
    /**行驶证注册日期*/
    @Excel(name = "行驶证注册日期", width = 15)
    @ApiModelProperty(value = "行驶证注册日期")
    @JsonFormat(timezone ="GMT+8",pattern ="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date registerDate;
    /**实际车主*/
    @Excel(name = "实际车主", width = 15)
    @ApiModelProperty(value = "实际车主")
    private String actualOwner;
    /**行驶证地址*/
    @Excel(name = "行驶证地址", width = 15)
    @ApiModelProperty(value = "行驶证地址")
    private String carLicenseAddress;
    /**车辆里程*/
    @Excel(name = "车辆里程", width = 15)
    @ApiModelProperty(value = "车辆里程")
    private Integer carMiles;
    /**1自有车辆 2外租车辆*/
    @Excel(name = "1自有车辆 2外租车辆", width = 15)
    @ApiModelProperty(value = "1自有车辆 2外租车辆")
    @Dict(dicCode = "idleCar_carBelong")
    private Integer carBelong;
    /**是否通过平台租赁 0否 1是*/
    @Excel(name = "是否通过平台租赁", width = 15)
    @ApiModelProperty(value = "是否通过平台租赁")
    @Dict(dicCode = "whether")
    private Integer ifLease;
    /**是否闲置 0否 1是*/
    @Excel(name = "是否闲置", width = 15)
    @ApiModelProperty(value = "是否闲置")
    @Dict(dicCode = "whether")
    private Integer ifUnused;
    /**租车企业名称*/
    @Excel(name = "租车企业名称", width = 15)
    @ApiModelProperty(value = "租车企业名称")
    private String rentOrgName;
    /**租赁开始日期*/
    @Excel(name = "租赁开始日期", width = 15)
    @ApiModelProperty(value = "租赁开始日期")
    @JsonFormat(timezone ="GMT+8",pattern ="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date rentStartDate;
    /**租赁结束日期*/
    @Excel(name = "租赁结束日期", width = 15)
    @ApiModelProperty(value = "租赁结束日期")
    @JsonFormat(timezone ="GMT+8",pattern ="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date rentEndDate;
    /**计划处理方式 1拟盘活 2拟报废 3拟拍卖 4拟抵账*/
    @Excel(name = "计划处理方式", width = 15)
    @ApiModelProperty(value = "计划处理方式")
    @Dict(dicCode = "idleCar_disposal")
    private Integer disposal;
    /**拟盘活时的意向租赁价格*/
    @Excel(name = "拟盘活时的意向租赁价格", width = 15)
    @ApiModelProperty(value = "拟盘活时的意向租赁价格")
    private Integer intentionRent;
    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private String province;
    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private String city;
    /***/
    @Excel(name = "", width = 15)
    @ApiModelProperty(value = "")
    private String district;
    /**纬度*/
    @Excel(name = "纬度", width = 15)
    @ApiModelProperty(value = "纬度")
    private Integer lat;
    /**经度*/
    @Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
    private Integer lng;
    /**上级组织机构*/
    @Excel(name = "上级组织机构", width = 15)
    @ApiModelProperty(value = "上级组织机构")
    private String orgMgrName;
    /**车辆类别（轿车/suv/mvp）*/
    @Excel(name = "车辆类别", width = 15)
    @ApiModelProperty(value = "车辆类别")
    private String carCategory;
    /**车辆使用类型（公务用车/生产用车）*/
    @Excel(name = "车辆使用类型", width = 15)
    @ApiModelProperty(value = "车辆使用类型")
    private String carUsageType;

}
